﻿//using Infrastructure.Common.Data.Imp;
//using TallyBook.Business.Service.Imp;
//using TallyBook.Data.Tmp;

using System;
using System.Windows.Forms;
using TallyBook.BLL.Service.Imp;
using TallyBook.DAL.Repository.Imp;

namespace TallyBook.UI
{
    internal static class Program
    {
        /// <summary>
        ///     应用程序的主入口点。
        /// </summary>
        [STAThread]
        private static void Main()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new LoginForm(new UserService(new UserRepository())));
        }

        private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            MessageBox.Show(e.ToString());
        }
    }
}